package com.thinkin.ordercenter.po;

import java.sql.Timestamp;
import java.util.Date;

import com.thinkin.util.ExtendDate;

public class Ochannel {

	/**
	 * 
	 */

	private String keyid; // 主键
	private String username; // 用户名
	private String pwd;// 密码
	private String dsname; // 渠道name
	private String dstype; // 渠道type
	private String dsshortcode; // 渠道简码
	private String dscode;// 渠道代码
	private String authbrand; // 授权品牌
	private String productcategory;// 商品分类
	private double bail = 0.00d; // 保证金
	private String dbusinessuser;// 招商员
	private String dbusinessmodel; // 商业模式

	public String createname; /* 1.创建人 */
	public Timestamp createdate; /* 1.创建时间 */
	public String modifyname; /* 2.修改人 */
	public Timestamp modifydate; /* 2.修改时间 */
	public String isenable = "0"; // 0 ：默认启用， 1：禁用

	public String getKeyid() {
		return keyid;
	}

	public void setKeyid(String keyid) {
		this.keyid = keyid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getDsname() {
		return dsname;
	}

	public void setDsname(String dsname) {
		this.dsname = dsname;
	}

	public String getDstype() {
		return dstype;
	}

	public void setDstype(String dstype) {
		this.dstype = dstype;
	}

	public String getDsshortcode() {
		return dsshortcode;
	}

	public void setDsshortcode(String dsshortcode) {
		this.dsshortcode = dsshortcode;
	}

	public String getDscode() {
		return dscode;
	}

	public void setDscode(String dscode) {
		this.dscode = dscode;
	}

	public String getAuthbrand() {
		return authbrand;
	}

	public void setAuthbrand(String authbrand) {
		this.authbrand = authbrand;
	}

	public String getProductcategory() {
		return productcategory;
	}

	public void setProductcategory(String productcategory) {
		this.productcategory = productcategory;
	}

	public double getBail() {
		return bail;
	}

	public void setBail(double bail) {
		this.bail = bail;
	}

	public String getDbusinessuser() {
		return dbusinessuser;
	}

	public void setDbusinessuser(String dbusinessuser) {
		this.dbusinessuser = dbusinessuser;
	}

	public String getDbusinessmodel() {
		return dbusinessmodel;
	}

	public void setDbusinessmodel(String dbusinessmodel) {
		this.dbusinessmodel = dbusinessmodel;
	}

	public String getCreatename() {
		return createname;
	}

	public void setCreatename(String createname) {
		this.createname = createname;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public String getModifyname() {
		return modifyname;
	}

	public void setModifyname(String modifyname) {
		this.modifyname = modifyname;
	}

	public Date getModifydate() {
		return modifydate;
	}

	public String getIsenable() {
		return isenable;
	}

	public void setIsenable(String isenable) {
		this.isenable = isenable;
	}

	public void setCreatedate(Timestamp createdate) {
		this.createdate = createdate;
	}

	public void setModifydate(Timestamp modifydate) {
		this.modifydate = modifydate;
	}

	/**
	 * 时间转换
	 */
	public void setStrsCreatedate(String sDate) {
		this.setCreatedate(ExtendDate.getTimestamp(sDate));
	}

	public String getStrsCreatedate() {
		return ExtendDate.getYMD_h_m_s(this.getCreatedate());
	}

	public void setStrsModifydate(String sDate) {
		this.setModifydate(ExtendDate.getTimestamp(sDate));

	}

	public String getStrsModifydate() {
		return ExtendDate.getYMD_h_m_s(this.getModifydate());
	}

}
